package com.example.rbacmanage.controller.app;

import com.example.rbacmanage.common.Result;
import com.example.rbacmanage.service.app.ShopInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app/shopinfo")
public class ShopInfoAppController {
    @Autowired
    private ShopInfoService shopInfoService;

    @GetMapping("/info/{id}")
    public Result getShopInfo(@PathVariable Long id) {
        return Result.success(shopInfoService.getById(id));
    }
}
